package com.huiztech.kaoqinji.mvc;

import java.util.Map;

import android.app.Activity;
import android.os.Bundle;

public class KaoqinBaseActivity extends Activity {
    protected AbstractKaoqinController controller;
    protected KaoqinView view;
    protected Map<String, Object> model;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        controller = KaoqinControllerFactory.getInstance();
        view = controller.getHuizView();
        model = controller.getHuizModel();
        controller.setContext(this);
    }

    @Override
    protected void onResume() {
        super.onResume();
        this.controller.setContext(this);
    }
}
